import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)
import theme from './moudle/theme'
import admin from './moudle/admin'
import productType from './moudle/productType'
export default new Vuex.Store({
  state: {
    userInfo:{
      
    }
  },
  mutations: {
    setUser(state,val){
        console.log(val);
        state.userInfo = val;
        console.log(state.userInfo);
    }
  },
  actions: {
  },
  modules: {
    theme,
    admin,
    productType
  }
})
